/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tencent.tendon.convert.json.listeners;

import com.tencent.tendon.convert.json.*;

/**
 *
 * @author nbzhang
 */
public final class JsonStringListener extends JsonAbstractListener<String> {

    private static final JsonStringListener instance = new JsonStringListener();

    private JsonStringListener() {
    }

    public static JsonStringListener getInstance() {
        return instance;
    }

    @Override
    public final void convertTo(JsonWriter out, String value) {
        convertStringTo(out, value);
    }

    @Override
    public final String convertFrom(final JsonReader in) {
        return convertStringFrom(in);
    }

    @Override
    public Class<String> getType() {
        return String.class;
    }
}
